package com.jiazhong.重载;

public class Demo01 {
    public static void main(String[] args) {
        Methods methods=new Methods();
        int mul= methods.m(4);
        int mul1=methods.m(3,4);
        String x="don't";
        String c= methods.m(x);
        System.out.println(mul+"\n"+mul1+c);
    }
}
class Methods{
    public int m(int n){
        int mul=n*n;
        return mul;
    }
    public int m(int m,int n){
        int mul=m*n;
        return mul;
    }
    public  String m(String x){
        x=x+"speak";
        return x;
    }
}
